inFolder = "F:\workspace\starller\resource\Main Characters\Mask Dude\";

files = dir(inFolder);
x = size(files)
for i = 1:(x)
    name = f(i).name;
    inPath = inFolder + string(name)
    outPath = strsplit(inPath, '.');
    outPath = outPath(1)+"leftward."+outPath(2);
    revertImage(inPath, outPath);
end